#!/usr/bin/env python3

import sys
try:
    from numpy.random import randint as rand
except ImportError:
    from random import randint as rand


if __name__ == "__main__":
    l = int(sys.argv[1])
    u = int(sys.argv[2])
    n = int(sys.argv[3])
    print(n)
    while n > 0:
        print(rand(l, u), end=' ')
        n -= 1
    print()
